package com.lanyun.aicorrectassistant.basic.service.impl;

import com.lanyun.aicorrectassistant.basic.dao.AiModelDao;
import com.lanyun.aicorrectassistant.basic.entity.AiModel;
import com.lanyun.aicorrectassistant.basic.service.AiModelService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 大模型信息表（管理员维护）(AiModel)服务实现
 *
 * @author Jqchan
 * @since 2025-05-29 23:26:25
 */
@Service
public class AiModelServiceImpl implements AiModelService {
    
    @Resource
    private AiModelDao aiModelDao;

    @Override
    public AiModel queryById(Integer id) {
        return aiModelDao.queryById(id);
    }

    @Override
    public AiModel queryByCondition(AiModel condition) {
        return aiModelDao.queryByCondition(condition);
    }

    @Override
    public List<AiModel> queryAllByCondition(AiModel condition) {
        return aiModelDao.queryAllByCondition(condition);
    }

    @Override
    public List<AiModel> page(AiModel condition, int page, int pageSize) {
        return aiModelDao.page(condition, page, pageSize);
    }

    @Override
    public int insert(AiModel entity) {
        return aiModelDao.insert(entity);
    }

    @Override
    public int update(AiModel entity) {
        return aiModelDao.update(entity);
    }

    @Override
    public int deleteById(Integer id) {
        return aiModelDao.deleteById(id);
    }

    @Override
    public Long count(AiModel condition) {
        return aiModelDao.count(condition);
    }
}
